<template>
  <div class="container">
    <div class="box" v-banRightClick="handleClickRight"></div>
  </div>
</template>

<script setup>
const handleClickRight = (e) => {
  console.log('右键被禁止',e)
}
</script>

<style scoped>
.box {
  width: 100px;
  height: 100px;
  border: 1px solid red;
}
</style>
